<template>
  <el-dialog
    top="30px"
    width="80%"
    class="dialog-sm"
    title="放款登记"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <register-reply
      v-bind="$attrs"
      @success="handleEditSuccess"
      @dismiss="beforeClose"
    ></register-reply>
  </el-dialog>
</template>

<script>
import RegisterReply from '@/bank/views/fast/register/components/RegisterReply'

export default {
  components: {
    RegisterReply,
  },
  props: {
    visible: Boolean,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },

    handleEditSuccess() {
      this.beforeClose()
      this.$emit('success', true)
    },
  },
}
</script>
<style lang="scss" scoped></style>
